package com.lemobar.pay.model.epay;

import com.lemobar.pay.model.epay.response.EPayQueryResponse;
import com.lemobar.pay.model.epay.response.EPayRefundResponse;
import com.lemobar.pay.model.epay.response.EPayUnifiedCreateResponse;
import retrofit2.Call;
import retrofit2.http.FieldMap;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.POST;

import java.util.List;
import java.util.Map;

/**
 * 双乾支付 接口服务
 */
public interface EPayApi {

    /**
     * 统一下单
     */
    @FormUrlEncoded
    @POST("ScanCodePayment.action")
    Call<List<EPayUnifiedCreateResponse>> create(@FieldMap Map<String, String> map);

    /**
     * 查询订单
     */
    @FormUrlEncoded
    @POST("searchInterfaceSingleFR.action")
    Call<EPayQueryResponse> query(@FieldMap Map<String, String> map);

    /**
     * 退款
     */
    @FormUrlEncoded
    @POST("merApplyRefund.action")
    Call<EPayRefundResponse> refund(@FieldMap Map<String, String> map);


}
